package com.project.poetry.service.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.poetry.service.entity.dto.author.AuthorListOutDTO;
import com.project.poetry.service.entity.po.author.AuthorPO;
import org.apache.ibatis.annotations.Param;

/**
 * 作者持久层接口
 * @author mengxj
 */
public interface AuthorMapper extends BaseMapper<AuthorPO> {

    /**
     * 分页查询作者列表
     * @param page 分页对象
     * @param wrapper 查询对象
     * @return 作者列表
     */
    IPage<AuthorListOutDTO> selectAuthorList(IPage<AuthorListOutDTO> page, @Param("ew") QueryWrapper<AuthorListOutDTO> wrapper);
}
